package com.itheima.test6;

import java.io.File;

/**
 * @Author:gy
 * @Date: 2025/08/27 17:07
 * @Description:
 */
public class Demo4 {
    public static void main(String[] args) {
        File file1 = new File("Day09\\b.txt");
        File file2 = new File("D:\\班级\\93期\\day09-Stream&File\\a");
       /* System.out.println(file1.isDirectory());
        System.out.println(file1.isFile());
        System.out.println(file2.isDirectory());
        System.out.println(file2.isFile());*/
       // System.out.println(file2.exists());
      //  File absoluteFile = new File(file1.getAbsolutePath());
        //String path = file1.getPath();
       // System.out.println(path);
       /* String name = file2.getName();
        System.out.println(name);*/
    }
}
